package com.wjf.accesscontrol.util

import java.security.MessageDigest

/**
 * @Description
 * @Author WuJianFeng
 * @Date 2024/6/18 17:26
 *
 */

fun String.md5(): String {
 val bytes = MessageDigest.getInstance("MD5").digest(this.toByteArray())
 return bytes.joinToString("") {
  "%02x".format(it)
 }
}